export const getLeaveRouter = roleNums => {
    let resultRouter;

    const defualtRouter = {
        menuList: [
            {
                pathName: 'inquire-leaveNote',
                icon: '/icon-menu03.svg',
                text: '请假条查询'
            },
            {
                pathName: 'inquire-stayNote',
                icon: '/icon-menu01.svg',
                text: '留宿条查看'
            }
        ]
    };

    loop: for (const num of roleNums) {
        switch (num) {
            case 24:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'public-notice',
                            icon: '/icon-menu03.svg',
                            text: '通知公告',
                            id: 'Loremipsumdolorsit'
                        },
                        {
                            pathName: 'inquire-psychologyNote',
                            icon: '/icon-menu02.svg',
                            text: '心理预约查询',
                            id: 'vnqpuerqwnouirqevqe'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#4ACA6D, #67b1ba)'
                };
                break loop;
            case 21:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'inquire-leaveNote',
                            icon: '/icon-menu03.svg',
                            text: '请假条查询',
                            id: 'Loremipsumdolorsi'
                        },
                        {
                            pathName: 'public-notice',
                            icon: '/icon-menu03.svg',
                            text: '通知公告',
                            id: 'Loremipsumdolors'
                        },
                        {
                            pathName: 'inquire-psychologyNote',
                            icon: '/icon-menu02.svg',
                            text: '心理预约查询',
                            id: 'vnqpuerqwnouirqevqe'
                        }
                    ],
                    headerStyle:
                        'backgournd-image: linear-gradient(#50DBC7,#93EBDF)'
                };
                break loop;
            case 6:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'inquire-leaveNote',
                            icon: '/icon-menu03.svg',
                            text: '请假条查询',
                            id: 'Loremipsumdolo'
                        },
                        {
                            pathName: 'public-notice',
                            icon: '/icon-menu03.svg',
                            text: '通知公告',
                            id: 'Loremipsumdol'
                        }
                    ]
                };
                break loop;
            case 41:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'inquire-stayNote',
                            icon: '/icon-menu03.svg',
                            text: '留宿申请条查看',
                            id: 'Loremipsumdolo1'
                        }
                    ]
                };
                break loop;
            case 100:
                resultRouter = {
                    menuList: [],
                    headerStyle:
                        'background-image: linear-gradient(#50DBC7,#93EBDF)'
                };
                break loop;
            case 99:
                resultRouter = {
                    menuList: [],
                    headerStyle:
                        'background-image: linear-gradient(#0a7afa, #5acefc)'
                };
                break loop;
            case 96:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'inquire-publicClassNote',
                            icon: '/wenti_guanli.png',
                            text: '公共教室预约查询',
                            id: 'Loremipsumdoloqt1'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#0a7afa, #5acefc)'
                };
                break loop;
        }
    }
    // if (teacherStore.className) {
    return resultRouter || defualtRouter;
    // } else {
    //     return [];
    // }
};

export const getReservationRouter = roleNums => {
    let resultRouter = {
        menuList: [
            {
                pathName: 'teacher-studio',
                icon: '/studio.svg',
                text: '工作室查询',
                id: 'vnqiueborpoibjwierutbh'
            },
            {
                pathName: 'inquire-reservationNote',
                icon: '/order-record.svg',
                text: '预约记录查询',
                id: 'jpqievnqiuerpviuqoer'
            },
            {
                pathName: 'apply-publicClass',
                icon: '/icon-menu05.svg',
                text: '公共教室预约',
                id: 'vnoquiebqovuhoiehr'
            }
        ],
        headerStyle: ''
    };

    let defualtRouter = {
        menuList: [
            {
                pathName: 'teacher-studio',
                icon: '/studio.svg',
                text: '工作室查询',
                id: 'vnqiueborpoibjwierutbh'
            },
            {
                pathName: 'inquire-reservationNote',
                icon: '/order-record.svg',
                text: '预约记录查询',
                id: 'jpqievnqiuerpviuqoer'
            },
            {
                pathName: 'apply-publicClass',
                icon: '/icon-menu05.svg',
                text: '公共教室预约',
                id: 'vnoquiebqovuhoiehr'
            }
        ]
    };

    loop: for (const num of roleNums) {
        switch (num) {
            case 24:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        },
                        {
                            pathName: 'inquire-psychologyNote',
                            icon: '/icon-menu02.svg',
                            text: '心理预约查询',
                            id: 'vnqpuerqwnouirqevqe'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#4ACA6D, #67b1ba)'
                };
                break loop;
            case 21:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        },
                        {
                            pathName: 'inquire-psychologyNote',
                            icon: '/icon-menu02.svg',
                            text: '心理预约查询',
                            id: 'vnqpuerqwnouirqevqe'
                        }
                    ],
                    headerStyle:
                        'backgournd-image: linear-gradient(#50DBC7,#93EBDF)'
                };
                break loop;
            case 6:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        }
                    ]
                };
                break loop;
            case 41:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        }
                    ]
                };
                break loop;
            case 100:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#50DBC7,#93EBDF)'
                };
                break loop;
            case 99:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#0a7afa, #5acefc)'
                };
                break loop;
            case 96:
                resultRouter = {
                    menuList: [
                        {
                            pathName: 'teacher-studio',
                            icon: '/studio.svg',
                            text: '工作室查询',
                            id: 'vnqiueborpoibjwierutbh'
                        },
                        {
                            pathName: 'inquire-reservationNote',
                            icon: '/order-record.svg',
                            text: '预约记录查询',
                            id: 'jpqievnqiuerpviuqoer'
                        },
                        {
                            pathName: 'apply-publicClass',
                            icon: '/icon-menu05.svg',
                            text: '公共教室预约',
                            id: 'vnoquiebqovuhoiehr'
                        }
                    ],
                    headerStyle:
                        'background-image: linear-gradient(#0a7afa, #5acefc)'
                };
                break loop;
        }
    }

    if (roleNums.includes(45) || roleNums.includes(46)) {
        resultRouter.menuList.push({
            pathName: 'apply-file',
            icon: '/icon-menu01.svg',
            text: '档案预约条查看',
            id: 'jqvniouerooviuq'
        });
    }

    return resultRouter || defualtRouter;
};
